package com.caidan.search.controller;

import com.caidan.common.result.Result;
import com.caidan.search.service.IndexService;
import jakarta.annotation.Resource;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @项目名 CaiDanSearchSystem
 * @描述 首页
 * @作者 小菜蛋
 * @时间 2024/12/2 19:24
 */
@RequestMapping("/index")
@RestController
@Slf4j
public class IndexController {

    @Resource
    private IndexService indexService;

    @GetMapping("/status")
    public Result getStatus(){
        return indexService.getStatus();
    }
}
